#include <stdio.h>

struct People         //  int
{
	char name[18];   // 18 + 2 
	int	 age;        // 4
	char sex;        // 1 + 3 
	float shouru;    // 4
	char* addr;	     //	4
};

int main()
{
	int i = 0;
	
	int a = 6;
//	printf("a == %d\n",a);
	
	int arr[5] = {1,2,3,4,5};
//	for(i = 0;i < 5;i++)
//	{
//		printf("arr[i] == %d\n",arr[i]);
//	}
	
	
	struct People  stu1 = {"zhangsan",18,'W',8888.88,"shenzhen"};	
	struct People  stu[5] = {
								{"zhangsan",18,'W',8888.88,"shenzhen"},
								{"lis",19,'M',8788.88,"guangzhou"},
								{"wangwu",20,'W',8488.88,"huizhou"},
								{"zhaoliu",21,'M',8898.88,"dongguan"},
								{"qianqi",22,'W',7888.88,"qingyuan"}	
							};
	
	for(i = 0;i < 5;i++)
	{
		printf("%-10s",stu[i].name);
		printf("%-4d",stu[i].age);
		printf("%-4c",stu[i].sex);
		printf("%-10.2f",stu[i].shouru);
		printf("%-20s\n",stu[i].addr);
	}

	
	
//	printf("%-10s",stu1.name);
//	printf("%-4d",stu1.age);
//	printf("%-4c",stu1.sex);
//	printf("%-10.2f",stu1.shouru);
//	printf("%-20s\n",stu1.addr);

	
	return 0;
}

